import request from '@sc/request';

export async function getMessageList(data) {
  return request(`/api/v1/operate/message/getMessageList`, {
      method: 'GET',
      data,
  })
}

export async function getNotReadCount() {
  return request(`/api/v1/operate/message/getNotReadCount`, {
    method: 'GET',
  })
}

export async function postUpdateReadStatus(data) {
  return request(`/api/v1/operate/message/updateReadStatus`, {
      method: 'POST',
      data,
  })
}

export async function postUpdateAllReadStatus() {
  return request(`/api/v1/operate/message/updateAllReadStatus`, {
      method: 'POST',
  })
}

export async function postDeleteMessage(data) {
  return request(`/api/v1/operate/message/batchDeleteMessage`, {
      method: 'POST',
      data,
  })
}
//export default '';
